home *** CD-ROM | disk | FTP | other *** search
- from JascApp import *
-
- def ScriptProperties():
- return {
- 'Author': 'Kris Zaklika',
- 'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
- 'Description': 'A lens with the glass ground at the edges',
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
- def Preset_MagnifyingLens():
- return {
- 'Bound': (0.17125,0.07,0.82375,0.94),
- 'Darkness': 0,
- 'Defocus': 4,
- 'Frame': {
- 'Material': App.Constants.LensFrameMaterial.None
- },
- 'Illumination': {
- 'LightList': [{
- 'LightColor': (192,192,192),
- 'LightDirection': (0.000000,-0.000000,1.00000),
- 'HighlightSize': 19
- },{
- 'LightColor': (255,255,255),
- 'LightDirection': (0.624208,0.781258,0.1),
- 'HighlightSize': 14
- }],
- 'MaxAmbience': 100,
- 'MinAmbience': 0
- },
- 'LensSurface': {
- 'EnvironmentMap': {
- 'Active': App.Constants.Boolean.true,
- 'MapType': App.Constants.LensMapType.CurrentImage,
- 'PatternOpacity': 100
- },
- 'Gloss': 85,
- 'Magnification': 26,
- 'LensMaterial': {
- 'Color': (192,192,192),
- 'Pattern': None,
- 'Gradient': None,
- 'Texture': None
- },
- 'LensOpacity': 30,
- 'Refraction': 30,
- 'ShapeType': App.Constants.LensShape.Spherical,
- 'Shininess': 30
- }
- }
-
- def Do(Environment):
- App.Do( Environment, 'MagnifyingLens', Preset_MagnifyingLens())
-
-